// import { date } from 'jszip/lib/defaults'

export const statusOp = {
  'refund': '已退款',
  'take': '已取药',
  'untake': '未取药'
}

export const mockMedData = [
  {
    id: 1,
    time: '2023-10-01 10:00',
    state: '待配药',
    patient_name: '张三',
    medicines: [
      { medicine_name: '阿司匹林', quantity: 2, usage: '每日一次', notes: '饭后服用' },
      { medicine_name: '布洛芬', quantity: 1, usage: '每6小时一次', notes: '必要时服用' },
      { medicine_name: '退烧药', quantity: 2, usage: '每8小时一次', notes: '必要时服用' }
    ]
  },
  {
    id: 2,
    time: '2023-10-01 11:00',
    state: '已配药',
    patient_name: '李四',
    medicines: [
      { medicine_name: '维生素C', quantity: 3, usage: '每日两次', notes: '空腹服用' },
      { medicine_name: '退烧药', quantity: 2, usage: '每8小时一次', notes: '必要时服用' }
    ]
  },
  {
    id: 3,
    time: '2023-10-01 12:00',
    state: '已发药',
    patient_name: '王五',
    medicines: [
      { medicine_name: '感冒药', quantity: 1, usage: '每4小时一次', notes: '必要时服用' }
    ]
  },
  {
    id: 4,
    time: '2023-10-01 13:00',
    state: '待配药',
    patient_name: '赵六',
    medicines: [
      { medicine_name: '退烧药', quantity: 2, usage: '每8小时一次', notes: '必要时服用' }
    ]
  },
  {
    id: 5,
    time: '2023-10-01 14:00',
    state: '已发药',
    patient_name: '孙七',
    medicines: [
      { medicine_name: '阿司匹林', quantity: 1, usage: '每日一次', notes: '饭后服用' },
      { medicine_name: '布洛芬', quantity: 2, usage: '每6小时一次', notes: '必要时服用' }
    ]
  }
]

export const mockMedAllData = [
  {
    id: 1,
    name: '阿司匹林',
    producer: 'cipla',
    counts: 100,
    price: 2.1,
    date: '2023-10-01'
  },
  {
    id: 2,
    name: '布洛芬',
    producer: 'cipla',
    counts: 100,
    price: 2.8,
    date: '2023-10-02'
  }

]
